<?php
class ActivityDailyLoginVo extends SzAbstractMySqlVo
{

    private $userId;
    private $indexId;
    private $lastTime;
    private $day;
    private $status;

    /**
     * Initialize ActivityDailyLoginVo.
     *
     * @param $userId
     * @param $indexId
     * @param $lastTime
     * @param $day
     * @param $status
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ActivityDailyLoginVo
     */
    public function __construct($userId, $indexId, $lastTime, $day, $status = 0, $isInsert = false) {
        $this->userId = $userId;
        $this->indexId = $indexId;
        $this->lastTime = $lastTime;
        $this->day = $day;
        $this->status = $status;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ActivityDailyLoginVo';
        $this->ormName = 'ActivityDailyLogin';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'indexId' => $this->getIndexId(),
            'lastTime' => $this->getLastTime(),
            'day' => $this->getDay(),
            'status' => $this->getStatus(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'indexId' => $this->getIndexId(),
            'lastTime' => $this->getLastTime(),
            'day' => $this->getDay(),
            'status' => $this->getStatus(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getIndexId(),
            $this->getLastTime(),
            $this->getDay(),
            $this->getStatus(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getIndexId()
    {
        return $this->indexId;
    }

    public function setIndexId($val)
    {
        $this->saveColumnStatus(1, $this->indexId);
        $this->indexId = $val;
    }

    public function getLastTime()
    {
        return $this->lastTime;
    }

    public function setLastTime($val)
    {
        $this->saveColumnStatus(2, $this->lastTime);
        $this->lastTime = $val;
    }

    public function getDay()
    {
        return $this->day;
    }

    public function setDay($val)
    {
        $this->saveColumnStatus(3, $this->day);
        $this->day = $val;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function setStatus($val)
    {
        $this->saveColumnStatus(4, $this->status);
        $this->status = $val;
    }

}